package com.example.stock.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class StockOperate {

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @ExcelProperty("日期")
    private Date date;

    @ExcelProperty("星期")
    private Integer week;

    @ExcelProperty("时间")
    private String time;

    @ExcelProperty("标的")
    private String stock;

    /**
     * 股票当日表现
     */
    @ExcelProperty("pct")
    private Double pct;

    @ExcelProperty("操作")
    private String operation;

    @ExcelProperty("描述")
    private String desc;

    @ExcelProperty("单价")
    private Double price;

    @ExcelProperty("金额")
    private Double amount;

    @ExcelProperty("手数")
    private int operateNum;

    @ExcelProperty("分位点值")
    private Double levelPoint;

    @ExcelProperty("指标")
    private String indicator;

    @ExcelProperty("原因")
    private String reason;

    @ExcelProperty("后续操作")
    private String nextOperate;

    @ExcelProperty("补充说明")
    private String extra;
}
